package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/**
 * 文件输入流，读取文件数据
 */
public class FISDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("fos.dat");



        int a= fis.read();
        System.out.println(a);

        a= fis.read();
        System.out.println(a);


        fis.close();
    }
}
